<ul class="button">
    <li><a href="javascript:void(0);" class="add">添加职位</a></li>
</ul>

<table class="records">
    <thead>
	<tr>
	    <th>选择</th>
	    <th>顺序</th>
	    <th>职位（中文）</th>
	    <th>职位（英文）</th>
	    <th>发布于</th>
	    <th>操作</th>
	</tr>
    </thead>
    <tfoot>
	<tr><td colspan="6"></td></tr>
    </tfoot>
    <tbody>
	<tr><td colspan="6">Loading...</td></tr>
    </tbody>
</table>

<script id="form-template" type="text/x-jquery-tmpl">
    <form action="/backend/job/${action}" method="post" style="text-align: left;">
	<input type="hidden" name="id" value="${id}"/>
	<ul class="tab-button">
	    <li><a href="javascript:void(0);">中文</a></li>
	    <li><a href="javascript:void(0);">英文</a></li>
	</ul>
	<div class="tab-content">
	    <div class="form-row">
		<label for="position">职位</label>
		<input type="text" class="text" name="position" value="${position}"/>
	    </div>
	    <div class="form-row">
		<label for="requirements">要求</label>
		<textarea name="requirements" style="height:200px;width:400px;">${requirements}</textarea>
	    </div>
	</div>
	<div class="tab-content">
	    <div class="form-row">
		<label for="position_en">Position</label>
		<input type="text" class="text" name="position_en" value="${position_en}"/>
	    </div>
	    <div class="form-row">
		<label for="requirements_en">Requirements</label>
		<textarea name="requirements_en" style="height:200px;width:400px;">${requirements_en}</textarea>
	    </div>
	</div>
	<div class="form-button">
	    <input type="submit" name="submit" value="提交"/>
	</div>
    </form>
</script>

<script id="list-template" type="text/x-jquery-tmpl">
    <tr>
	<td><input type="checkbox" value="${id}" name="id[]"/></td>
	<td>${order}</td>
	<td>${position}</td>
	<td>${position_en}</td>
	<td>${created_at}</td>
	<td>
	    <a href="javascript:void(0);" class="order">排序</a>
	    <a href="javascript:void(0);" class="edit">编辑</a>
	    <a href="javascript:void(0);" class="delete">删除</a>
	</td>
    </tr>
</script>

<script id="none-template" type="text/x-jquery-tmpl">
    <tr><td colspan="6" style="text-align: center;">暂无职位</td></tr>
</script>

<script id="order-form" type="text/x-jquery-tmpl">
	<form action="/backend/job/order" method="post">
		<input type="hidden" name="id" value="${id}"/>
		<input type="text" name="order" />
		<input type="submit" value="确定"/>
	</form>
</script>